<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>vue中的数据类型的操作</title>
    <script src="js/vue.js"></script>
    <style>
        .box{
            width: 200px;
            height: 200px;
            background-color: red;
        }
    </style>
</head>

<body>
    <div id="app">
       <h3>分数{{score}}</h3>
        <div v-if="score<60">不及格</div>
        <div v-else-if="score<70">及格</div>
        <div v-else-if="score<80">良好</div>
        <div v-else>优秀</div>
    </div>

</body>
<script>
    new Vue({
        el: "#app",
        data: {
           score:Math.round(Math.random()*100),//随机产生一个0到100的数作为 分数

        },
        
    })



</script>

</html>